﻿using ConsoleApp.Valid.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp.Valid.Models
{
    public class Person
    {
        [Required]
        public string Name { get; set; }

        [Range(18, 100, ErrorMessage = "年龄必须在 18 到 100 之间。")]
        public int Age { get; set; }
    }
}
